#ifndef RANDOMWID_H
#define RANDOMWID_H

#include <QGraphicsPixmapItem>
#include <QApplication>
#include <qdebug.h>
#include <QPixmap>

class randomWid : public QObject, public QGraphicsPixmapItem
{
    Q_OBJECT
    Q_PROPERTY(QPointF pos READ pos WRITE setPos)
public:
    randomWid(QString onIcon, QString offIcon, bool randomIsActivated = false);

private:
    QPixmap * onPix;
    QPixmap * offPix;
    void mousePressEvent(QGraphicsSceneMouseEvent * event);

signals:
    void randomToggled();

public slots:
    void updateStatus(bool status);
};

#endif // RANDOMWID_H
